<?php

class Products_ads_model extends CI_Model {

    function __construct() {
        parent::__construct();
    }
    function listAd() {
        $this->db->order_by('upload_time', "DESC");
        $query = $this->db->get('advertise');
        if($query->num_rows() > 0) {
            return $query->result();
        } else {
            return false;   
        }
    }
}
